
import { Navigate, createHashRouter, redirect } from 'react-router-dom'
import {RouteObject} from './types'


import Error403 from '../views/error/403'
import Error404 from '../views/error/404'
import Index from '../views/layout'

const rootRoutes: RouteObject[] = [
    {
        path: '/',
        name: 'RedirectTo',
        element:<div>1234</div>
    },
    {
        path: '*',
        name: 'RedirectTo',
        element:<div>1234</div>
    },
]

export default createHashRouter(rootRoutes)
